<?php 
namespace app\common\model;
class MemberGroup extends Common{
	protected function getStatusnameAttr($value,$data){
		
		return $data['status'] ? "显示" : "隐藏";
	}
	protected function getProleAttr($value, $data){
		return $data['pid'] ? $this->where('id', $data['pid'])->value('role') : '顶级';
	}
}